package com.gzist.elderlyserviceplatform.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 服务预约参数DTO
 */
@Data
@Schema(name = "ServiceReservationDTO", description = "服务预约参数DTO")
public class ServiceReservationDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "服务 ID，关联 elderly_service 表的 id")
    private String serviceId;

    @Schema(description = "预约人 ID，关联 user 表的 id")
    private String userId;

    @Schema(description = "预约人名称")
    private String userName;

    @Schema(description = "预约时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime reservationTime;

    @Schema(description = "紧急联系人电话")
    private String emergencyContactPhone;

    @Schema(description = "服务地址")
    private String serviceAddress;
}